package ch06.shili.shili06;

/**
 * @author 茜茜
 * @date 2024-11-22 14:24
 */
public class AccrssPersonConstructors {
    public static void main(String[] args) {
        try {
            //加载Person类
            Class clz=Class.forName("reflect.entity.Person");
            //调用Person类的无参构造创建Person类实例
            Object obj=clz.newInstance();
            System.out.println(obj);
        }catch (Exception e) {
            e.printStackTrace();
        }

    }
}
